(function () {
    const URI = {
        HOMEPAGE: {
            PAGE: '/back/homepage/page',
            STATUS_DATA: '/back/homepage/statusData', // 状态数据
            SELECT_MONTH:'/back/homepage/selectData',//图标按钮搜索
        },
        ALARM: {//告警管理
            PAGE: '/back/alarm/page',
            LIST: '/back/alarm/list', // 列表数据
            EXPORT:'/back/alarm/export',//Excel导出
            CREATE_ALARM:{
                PAGE: '/back/alarm/create-alarm/page',// 页面
                STORAGE_TREE:'/back/alarm/create-alarm/tree',//zTree
                UPDATE:'/back/alarm/create-alarm/update',//确认按钮
                SEARCHENTER:'/back/alarm/create-alarm/searchEnter',//确认按钮
            },
            DETAIL:{
                PAGE:'/back/alarm/detail/page',//页面
            }
        },
        WORKORDER:{//工单管理
            ORDER:{//工单管理
                PAGE: '/back/workorder/order/page',
                LIST: '/back/workorder/order/list', // 列表数据
                DETAIL:{
                    PAGE: '/back/workorder/order/detail/page',//详情页面
                    DATA: '/back/workorder/order/detail/data',//详情数据
                    SIGN:'/back/workorder/order/detail/signBtn',//签收按钮
                    DISCARD:'/back/workorder/order/detail/discardBtn',//废弃按钮
                    CHANGE:'/back/workorder/order/detail/changeBtn',//改派按钮
                    AUDIT:'/back/workorder/order/detail/auditBtn',//审核按钮
                    DISPOSE:'/back/workorder/order/detail/disposeBtn',//处理按钮
                }
            },
            BACKLOG:{//待办工单
                PAGE: '/back/workorder/backlog/page',
                SIGN_LIST: '/back/workorder/backlog/signList', //待签收列表
                DISPOSE_LIST: '/back/workorder/backlog/disposeList', //待处理列表
                AUDIT_LIST: '/back/workorder/backlog/auditList', //待审核列表
            }
        },
        OPERATE:{//运营管理
            SINGLELAMP:{//单灯管理
                PAGE: '/back/operate/singleLamp/page',
                LIST: '/back/operate/singleLamp/list', // 列表数据
                EXPORT:'/back/operate/singleLamp/export',//Excel导出
                UPLOAD:'/back/operate/singleLamp/upload',//Excel导入
                DELETE:'/back/operate/singleLamp/delete',//删除
                LAMP_MAP_LIST:'/back/operate/singleLamp/map_list', // 地图单灯展示查询经纬度
                DETAIL_IMSI:'/back/operate/singleLamp/imsi',  //imsi 输入动态查询
                CREATE_PALLET:{//新建
                    PAGE: '/back/operate/singleLamp/add/page',
                    SAVE:'/back/operate/singleLamp/add/save' //保存新建单灯
                },
                DETAIL:{//详情
                    PAGE:'/back/operate/singleLamp/singleDetail/page',
                    REFRESH:'/back/operate/singleLamp/refreshNetEnd'
                },
                SET:{//设置
                    PAGE:'/back/operate/singleLamp/singleSet/page',
                } ,
                MODIFY:{//修改
                    PAGE:'/back/operate/singleLamp/singleModify/page',
                } ,
            },
            LIGHTMETHOD:{//照明策略
                PAGE: '/back/operate/lightmethod/page',
                LIST: '/back/operate/lightmethod/list', // 列表数据
                CREATE:{
                    PAGE: '/back/operate/lightmethod/create/page', // 创建页面
                    SAVE: '/back/operate/lightmethod/create/save' // 确认按钮
                },
                DETAIL:{
                    PAGE: '/back/operate/lightmethod/detail/page', // 详情页面
                    DATA: '/back/operate/lightmethod/detail/data', // 获取详情数据
                },
                MODIFY:{
                    PAGE: '/back/operate/lightmethod/modify/page', // 修改页面
                    SAVE: '/back/operate/lightmethod/modify/save', // 确认按钮

                },
                DELETE:'/back/operate/lightmethod/delete' // 删除按钮
            },
            GROUPS:{//分组管理
                PAGE: '/back/operate/groups/page',
                LIST: '/back/operate/groups/list',
                CREATE: {
                    PAGE: '/back/operate/groups/create/page', // 创建页面
                    SAVE: '/back/operate/groups/create/save' // 确认按钮
                },
                DETAIL: {
                    PAGE: '/back/operate/groups/detail/page', // 详情页面
                    DATA: '/back/operate/groups/detail/data', // 获取详情数据
                    LIST: '/back/operate/groups/detail/list', // 获取详情列表
                    PLAN: '/back/operate/groups/detail/planPage', // 获取详情的照明计划的页面
                    PLAN_LIST: '/back/operate/groups/detail/planList', // 获取详情的照明计划的数据
                },
                UPDATE: {
                    PAGE: '/back/operate/groups/update/page', // 修改页面
                    SAVE: '/back/operate/groups/update/save', // 确认按钮
                    GROUPS_LIST: '/back/operate/groups/update/groupsList', // 转移分组下拉框
                    GROUPS_CONFIRM: '/back/operate/groups/update/groupsConfirm', // 转移分组按钮
                    PLAN_CONFIRM: '/back/operate/groups/update/planConfirm', // 照明计划的修改确认按钮
                    PLAN_SAVE: '/back/operate/groups/update/planSave', // 照明计划的保存按钮
                },
                DELETE: '/back/operate/groups/delete' // 删除按钮
            },
            PROJECT: { //项目管理
                PAGE: '/back/operate/project/page',
                LIST: '/back/operate/project/list',
                CREATE: {
                    PAGE: '/back/operate/project/create/page', // 创建页面
                    SAVE: '/back/operate/project/create/save' // 确认按钮
                },
                DETAIL: {
                    PAGE: '/back/operate/project/detail/page', // 详情页面
                    DATA: '/back/operate/project/detail/data', // 获取详情数据
                    LIST: '/back/operate/project/detail/list', // 获取详情列表
                    PARAM: '/back/operate/project/detail/paramPage', // 查看参数的页面
                    PARAM_DATA: '/back/operate/project/detail/paramData' // 获取查看参数的数据
                },
                UPDATE: {
                    PAGE: '/back/operate/project/update/page', // 修改页面
                    SAVE: '/back/operate/project/update/save', // 修改确认按钮
                    PARAM: '/back/operate/project/update/paramPage', // 修改参数的页面
                    UPDATE_DATA: '/back/operate/project/update/paramSave' // 修改参数的保存按钮
                },
                DELETE: '/back/operate/project/delete' // 删除按钮
            },
            SIM: { // Sim卡管理
                PAGE: '/back/operate/sim/page',
                LIST: '/back/operate/sim/list',
                DETAIL: {
                  PAGE: '/back/operate/sim/detail/page', // 详情页面
                  DATA: '/back/operate/sim/detail/data', // 获取详情数据
                  UPDATE: '/back/operate/sim/detail/updateData' // 更新详情数据
                }
              },
            SMS: { // 短信设置
                PAGE: '/back/operate/sms/page',
                LIST: '/back/operate/sms/list'
              }
        },
        RUN_MONTIOR:{
            PAGE: '/back/runMontior/page',  //监控管理页面
            TREE:'/back/runMontior/treeList', //项目分组表
            TAB:{  //单灯点击详情tab页接口
                CONTROL_LIGHT:'/back/runMontior/tab/controlLight', //单灯控制
                LIGHT_LIST:'/back/runMontior/tab/lightList',  //单灯详情
                LOG_LIST:'/back/runMontior/tab/logList'  // 终端日志
            }
        },
        REPORT: {// 数据报表
            ALARM_INFO:{// 告警信息
                PAGE: '/back/report/alarmInfo/page',
                LIST: '/back/report/alarmInfo/list', // 列表数据
                EXPORT: '/back/report/alarmInfo/export',  // 订单导出
                INFO_CHAR: {
                    PAGE: '/back/report/alarmInfo/alarm-info-char/page', // 页面
                    CHAR:'/back/report/alarmInfo/alarm-info-char/char',//图表数据
                }
            },
            LOG_MESSAGE: {// 报文日志
                PAGE: '/back/report/logMessage/page',
                LIST: '/back/report/logMessage/list', // 列表数据
                EXPORT: '/back/report/logMessage/export' // 订单导出
            },
            SINGLELIGHT_CONDITION: {// 单灯工况
                PAGE: '/back/report/singleLightCondition/page',
                LIST: '/back/report/singleLightCondition/list', // 列表数据
                EXPORT: '/back/report/singleLightCondition/export' // 订单导出
            },
            WORK_ORDER: {// 工单信息
                PAGE: '/back/report/workOrder/page',
                LIST: '/back/report/workOrder/list', // 列表数据
                EXPORT: '/back/report/workOrder/export', // 订单导出
                INFO_CHAR: {
                    PAGE: '/back/report/workOrder/work-order-char/page', // 页面
                    CHAR:'/back/report/workOrder/work-order-char/char',//图表数据
                }
            },
            HISTORY_TIME:{//历史开关灯时间
                PAGE: '/back/report/historyTime/page',
                LIST: '/back/report/historyTime/list', // 列表数据
                EXPORT:'/back/report/historyTime/export',  //订单导出
                INFO_CHAR:{
                    PAGE: '/back/report/historyTime/history-time-char/page',// 页面
                    CHAR:'/back/report/historyTime/history-time-char/char',//图表数据
                }
            },
            TERMINAL_REPORT:{//终端报表
                PAGE: '/back/report/terminalReport/page',
                LIST: '/back/report/terminalReport/list', // 列表数据
                EXPORT:'/back/report/terminalReport/export',  //订单导出
                INFO_CHAR:{
                    PAGE: '/back/report/terminalReport/terminal-char/page', // 页面
                    CHAR:'/back/report/terminalReport/terminal-char/char',//图表数据
                }
            }
        },
        SYSTEM: { // 系统设置
            FUNCTION: { // 功能权限管理
                PAGE: '/back/system/permission/functionPage',
                LIST: '/back/system/permission/functionList', // 列表数据
                TREE: '/back/system/permission/functionTree', // 右侧树菜单
                CONFIRM: '/back/system/permission/functionConfirm' // 分配权限按钮
            },
            DATA: { // 数据权限管理
                PAGE: '/back/system/permission/dataPage',
                LIST: '/back/system/permission/dataList', // 列表数据
                TREE: '/back/system/permission/dataTree', // 右侧树菜单
                CONFIRM: '/back/system/permission/dataConfirm' // 分配权限按钮
            },
            ACCOUNT_MANAGEMENT: { // 账户管理
                PAGE: '/back/system/accountManagement/page',
                LIST: '/back/system/accountManagement/list', // 列表数据
                CREATE: {
                  PAGE: '/back/system/accountManagement/create/page', // 创建页面
                  SAVE: '/back/system/accountManagement/create/save' // 确认按钮
                },
                UPDATE: {
                  PAGE: '/back/system/accountManagement/update/page', // 修改页面
                  SAVE: '/back/system/accountManagement/update/save' // 确认按钮
                },
                DELETE: '/back/system/accountManagement/delete', // 删除按钮按钮
                RESET: '/back/system/accountManagement/reset' // 重置密码按钮
            },
            ROLE_MANAGEMENT: { // 角色管理
                PAGE: '/back/system/roleManagement/page',
                LIST: '/back/system/roleManagement/list', // 列表数据
                CREATE: {
                  PAGE: '/back/system/roleManagement/create/page', // 创建页面
                  SAVE: '/back/system/roleManagement/create/save' // 确认按钮
                },
                UPDATE: {
                  PAGE: '/back/system/roleManagement/update/page', // 修改页面
                  SAVE: '/back/system/roleManagement/update/save' // 确认按钮
                },
                DELETE: '/back/system/roleManagement/delete', // 删除按钮按钮
                TREE:'/back/system/permission/dataTree',//右侧树菜单
                CONFIRM:'/back/system/permission/dataConfirm'//分配权限按钮
            },
            SYSTEMPARA:{//系统参数管理
                PAGE: '/back/system/systempara/page',
                LIST: '/back/system/systempara/list', // 列表数据
                MODIFY:'/back/system/systempara/modify', // 修改按钮
            },
            ORGANIZE:{//组织机构管理管理
                PAGE: '/back/system/organize/page',
                LIST: '/back/system/organize/list', // 列表数据
                SEARCH:'/back/system/organize/search',//查询按钮
                ADD:'/back/system/organize/add',//查询按钮
                MODIFYDATA:'/back/system/organize/modifydata', // 修改页数据
                MODIFY:'/back/system/organize/modify', // 修改按钮
                DELETE:'/back/system/organize/delete', // 删除按钮
                TREE:'/back/system/organize/tree', // 左侧树菜单
            },
            DICTIONARY:{//数据字典管理
                PAGE: '/back/system/dictionary/page',
                LIST: '/back/system/dictionary/list', // 列表数据
                GROUPLIST: '/back/system/dictionary/grouplist', // 字典分组数据
                SEARCH:'/back/system/dictionary/search',//搜索按钮
                ADD:'/back/system/dictionary/add' ,// 新增按钮
                MODIFY:'/back/system/dictionary/modify', // 修改按钮
                DELETE:'/back/system/dictionary/delete' // 删除按钮
            }
        },
        LOGS:{//日志中心
            RUN:{//运行日志
                PAGE: '/back/logs/runPage',
                TYPE: '/back/logs/runType', // 日志类型
                LIST: '/back/logs/runList', // 列表数据
                CLEAR:'/back/logs/runClear'//清理日志按钮
            },
            OPERATE:{//操作日志
                PAGE: '/back/logs/operatePage',
                TYPE: '/back/logs/operateType', // 日志类型
                LIST: '/back/logs/operateList', // 列表数据
                CLEAR:'/back/logs/operateClear'//清理日志按钮
            }
        },

        
        BOOTSTRAP: {
            COMPANY_LIST: '/back/Bootstrap/companyList', // 获取机构（公司）列表
            ROLE: { // 角色管理
                ROLE_LIST: '/back/Bootstrap/role/roleList', // 获取角色列表（不分页）
            },
            BOOTSTRAP_TABLE: { // 账户管理
                PAGE: '/back/Bootstrap/Bootstrap-table/page', // 账户管理-页面
                LIST: '/back/Bootstrap/Bootstrap-table/list', // 账户管理-列表
                CREATE_BOOTSTRAP_TABLE: { // 客户-创建账户
                    PAGE: '/back/Bootstrap/Bootstrap-table/clientCreateAccount/page', // 页面
                    SAVE: '/back/Bootstrap/Bootstrap-table/clientCreateAccount/save' // 保存
                },
                PLATFORM_CREATE_BOOTSTRAP_TABLE: { // 平台-创建账户
                    PAGE: '/back/Bootstrap/Bootstrap-table/platformCreateAccount/page', // 页面
                    SAVE: '/back/Bootstrap/Bootstrap-table/platformCreateAccount/save' // 保存
                },
                DETAIL_BOOTSTRAP_TABLE: { // 账户详情
                    PAGE: '/back/Bootstrap/Bootstrap-table/detail/page', // 页面
                    DATA: '/back/Bootstrap/Bootstrap-table/detail/data' // 获取数据
                },
                MODIFY_BOOTSTRAP_TABLE: { // 修改
                    PAGE: '/back/Bootstrap/Bootstrap-table/modify/page', // 页面
                    DATA: '/back/Bootstrap/Bootstrap-table/modify/data', // 获取数据
                    SAVE: '/back/Bootstrap/Bootstrap-table/modify/save' // 保存修改
                },
                DELETE: '/back/Bootstrap/Bootstrap-table/delete', // 删除账户
                ENABLED: '/back/Bootstrap/Bootstrap-table/enabled', // 启用账户
                DISABLED: '/back/Bootstrap/Bootstrap-table/disabled' // 禁用账户
            },
        },
        // 个人中心
        MEMBER: {
            PAGE: '/back/memberCenter',
            SAVE: '/back/memberCenter/save',
            MODIFY: { //修改个人信息
                PAGE: '/back/memberCenter/modify/page', // 页面
                DATA: '/back/memberCenter/modify/data', // 数据-个人信息
                SAVE: '/back/memberCenter/modify/save' // 保存
            },
            UPDATE_PWD: '/back/memberCenter/updatePwd'
        },
        // 登录
        LOGIN: {
            RETRIEVE_PASSWORD: { // 忘记密码
                PAGE: '/login/retrievePassword/page', // 忘记密码页面
                SEND: '/login/retrievePassword/send', // 发送手机验证码
                EMAIL: '/login/retrievePassword/email', // 发送邮箱验证码
                CHECK: '/login/retrievePassword/check', // 校验手机号和验证码是否匹配
                CODE:'/login/retrievePassword/code',//教研邮箱和验证码是否匹配
                REINSTALL: { // 重新设置密码
                    PAGE: '/login/retrievePassword/reinstall/page', // 重新设置密码页面
                    SAVE: '/login/retrievePassword/reinstall/save' // 保存新密码
                }
            }
        },
        //-注册
        REGISTER: {
            PAGE: '/register/page', // 页面
            SEND: '/register/send', // 发送手机验证码
            SAVE: '/register/save', // 保存注册信息
            VAL_PHONE:'/register/phone',
            VAL_NEXT:'/register/next'//下一步校验
        },
        // 注销
        LOGOUT: {
            PAGE: '/logout/page',
            REQ: '/logout'
        }
    };
    window.URI = URI;
})();

(function () {
    //企业类型：-1=托盘运营商；1=托盘生产商；2=投资商；3=运营代理商；4=托盘承租方；5=POI；
    const COMPANY_TYPE = {
        OPERATOR: -1, // 托盘运营商
        CLIENT: 4, // 客户管理（托盘承租方）
        SUPPLIER: 1, // 供应商（托盘生产商）
        INVESTOR: 2, // 投资商
        AGENT: 3, // 代理商
        POI: 5 // POI 管理
    };
    window.COMPANY_TYPE = COMPANY_TYPE;

    const DEFAULT_IMG = {
        license: 'img/dev/license.png',
        cardFront: 'img/dev/icar_front.png',
        cardContrary: 'img/dev/icar_contrary.png',
        portrait: 'img/portrait.png'
    };
    window.DEFAULT_IMG = DEFAULT_IMG;

    const ACTION = {
        CREATE: 'create',
        MODIFY: 'modify',
        DETAIL:'detail'
    };
    window.ACTION = ACTION;
})();